import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import {ResourcesComponent} from "./resources.component";
import {ResourceAddComponent} from "./resource-add/resource-add.component";
import {ResourceUpdateComponent} from "./resource-update/resource-update.component";

const routes: Routes = [
    {
      path :"",
      component :ResourcesComponent
    },
    {
      path :"add",
      component :ResourceAddComponent
    },
    {
      path :"update",
      component :ResourceUpdateComponent
    }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class ResourcesRoutingModule { }
